package run.siyuan.jdk.设计模式.模板模式.模板模式案例3;

/**
 * @className: HummerH2Model
 * @Description: TODO 模板模式-扩展悍马2
 * @author: siyuan
 * @date: 2022/3/17 10:18 AM
 */
public class HummerH2Model extends HummerModel {
    protected void alarm() {
        System.out.println("悍马H2鸣笛...");
    }

    protected void engineBoom() {
        System.out.println("悍马H2引擎声音是这样的...");
    }

    protected void start() {
        System.out.println("悍马H2发动...");
    }

    protected void stop() {
        System.out.println("悍马H2停车...");
    }

    //默认没有喇叭的
    protected boolean isAlarm() {
        return false;
    }
}

